gtk/eventscrollerscroll: Handle smooth events in discrete controllers
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 11 Dec 2020 23:37:12 +0000 (00:37 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 12 Dec 2020 00:42:42 +0000 (01:42 +0100)
commit8402665c5528e2d475143a5ea4c09d1d9c2d40d8
tree429a67b0a4ff5d32ea08066deafa21b4417fbe4d
parent79090f175599f06feae23adb9ae9ac58a8754853
gtk/eventscrollerscroll: Handle smooth events in discrete controllers

We let smooth scroll events that don't trigger a ::scroll signal through.
This is unintended, these are handled, even if just accumulated.

This fixes cases like GtkSpinButton inside GtkScrolledWindow, where both
would handle events, until the GtkSpinButton eventually shifts away from
underneath the pointer.

Brought up at https://gitlab.gnome.org/GNOME/gtk/-/issues/593
gtk/gtkeventcontrollerscroll.c